package com.work.service.impl;

import com.work.bean.PersonBean;
import com.work.mapper.IPersonMapper;
import com.work.service.IPersonService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonServiceImpl implements IPersonService {
    private IPersonMapper mapper;

    @Override
    public void updateById(int id, String newTel) {
        mapper.updateById(id,newTel);
    }

    @Override
    public List<PersonBean> findAll() {
        List<PersonBean> list = mapper.findAll();
        return list;
    }
}
